#ifndef LOCKEDSEMAPHORE_H
#define LOCKEDSEMAPHORE_H

#include <QSemaphore>
#include <QReadWriteLock>
#include <QObject>

class LockedSemaphore : public QSemaphore
{

public:
    LockedSemaphore( int n );
    void lockedRelease();

private:
    QReadWriteLock rwLock;

};

#endif // LOCKEDSEMAPHORE_H
